home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / _com_makingwaves_view_MainViewWatcherSetupUtil.as < prev    next >
Text File  |  2009-12-16  |  1KB  |  34 lines

  1. package
  2. {
  3.    import com.makingwaves.view.MainView;
  4.    import flash.display.Sprite;
  5.    import mx.binding.IWatcherSetupUtil;
  6.    import mx.binding.PropertyWatcher;
  7.    import mx.core.IFlexModuleFactory;
  8.    
  9.    public class _com_makingwaves_view_MainViewWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
  10.    {
  11.        
  12.       
  13.       public function _com_makingwaves_view_MainViewWatcherSetupUtil()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       public static function init(param1:IFlexModuleFactory) : void
  19.       {
  20.          MainView.watcherSetupUtil = new _com_makingwaves_view_MainViewWatcherSetupUtil();
  21.       }
  22.       
  23.       public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
  24.       {
  25.          param4[0] = new PropertyWatcher("model",{"propertyChange":true},[param3[2],param3[1]],param2);
  26.          param4[1] = new PropertyWatcher("fridgeProducts",{"propertyChange":true},[param3[1]],null);
  27.          param4[2] = new PropertyWatcher("recipes",{"propertyChange":true},[param3[2]],null);
  28.          param4[0].updateParent(param1);
  29.          param4[0].addChild(param4[1]);
  30.          param4[0].addChild(param4[2]);
  31.       }
  32.    }
  33. }
  34.